@use "../../Style/components/device.scss" as m;
.des {
  margin-bottom: var(--x-gutter);
  border-radius: var(--x-radius);
  background-color: var(--x-card-des-bg);
  padding: calc(var(--x-gutter) / 2) var(--x-gutter);
  color: var(--x-card-des-fg);
}
.link {
  &::before {
    content: "👆 ";
  }
}
.ruby {
  cursor: pointer;
  background: var(--x-benchmark-ruby-bg);
  &:hover {
    text-decoration: underline;
  }
  rt {
    opacity: 0.5;
    font-size: 0.75rem;
  }
  &[data-is-result] {
    font-weight: bold;
  }
}
.error {
  padding: var(--x-gutter);
}
.title {
  flex: 0 0 8rem;
  padding: calc(var(--x-gutter) / 2) 0;
  color: var(--x-card-title-fg);
  word-break: normal;
  @include m.device(sm) {
    flex: 0 0 9rem;
  }
  @include m.device(md) {
    flex: 0 0 10rem;
  }
  @include m.device(lg) {
    flex: 0 0 11rem;
  }
}
.group {
  display: flex;
  align-items: center;
  border-bottom: 1px dashed var(--x-card-split-color);
  width: 100%;
  &:hover {
    background: var(--x-card-bg-hover);
  }
}
.content {
  flex-grow: 1;
  padding: calc(var(--x-gutter) / 2) 0;
}
.fieldset {
  position: relative;
  margin-bottom: calc(var(--x-gutter) * 1.5);
  box-shadow: var(--x-card-box-shadow);
  border: 5px solid var(--x-card-border-color);
  border-radius: var(--x-radius);
  background: var(--x-card-bg);
  padding: calc(var(--x-gutter) * 1.5) 0 0;
  scroll-margin-top: 50px;
}
.body {
  padding: 0 calc(var(--x-gutter) / 2);
  @include m.device(md) {
    padding: 0 var(--x-gutter);
  }
}
.arrow {
  opacity: 0.5;
  cursor: pointer;
  padding: 0 0.5rem;
  color: var(--x-card-legend-arrow-fg);
  &:active,
  &:hover {
    opacity: 1;
    color: var(--x-card-legend-arrow-fg);
    text-decoration: none;
  }
  &[data-disabled],
  &[data-disabled]:hover {
    opacity: 0.1;
    cursor: not-allowed;
  }
}
.legend {
  display: flex;
  position: absolute;
  top: 0;
  left: 50%;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  border-radius: 5rem;
  background: var(--x-card-legend-bg);
  padding: 0.5rem 1rem;
  color: var(--x-card-legend-fg);
  white-space: nowrap;
}
.legendText {
  padding: 0 0.5rem;
}
.multiItemContainer {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -0.2rem;
}
